package o2o.dao.PO.wallet;

import lombok.Data;
import lombok.experimental.Accessors;

//用户收入流水
@Data
@Accessors(chain = true)
public class UserWalletFlow {
    private Long id;//ID

    private String username;//用户账号
    private Integer userType;//用户类型

    private String orderNo;//订单编号
    private Integer orderType;//订单类型  1商城交易订单   2充值提现  3红包 77免单 9 分销转账
    private Double orderTotalMoney;//订单总金额

    private Double money;//本次金额
    private Double afterMoney;//操作后金额
    private Double awardMoney = 0d;//奖励金额（充值奖励）
    private Double distributeRate;//分成比例

    private Integer flowType;//收入类型  1收入，0支出

    private Integer isRefund;//是否已退款 1已退款 0未退款

    private Double exchangeRate;//汇率
    private Double fcOrderTotalMoney;//订单总金额 (外币)
    private Double fcMoney;//本次金额(外币)
    private Double fcAwardMoney = 0d;//奖励金额（充值奖励）(外币)

    private Integer state = 1;      // 状态 0 入账中 1 已入账

    private int delFlag;// 是否已删除(0未删除,1已删除)
    private String createUser;// 创建者
    private long createTime;// 创建日期 141231212423423时间戳毫秒级标识
    private String updateUser;// 最后更新着

    public UserWalletFlow() {
    }

    public UserWalletFlow(String username, Integer userType, String orderNo, Integer orderType, Double orderTotalMoney,
                          Double money, Double distributeRate, Integer flowType,
                          String createUser, long createTime) {
        this.username = username;
        this.userType = userType;
        this.orderNo = orderNo;
        this.orderType = orderType;
        this.orderTotalMoney = orderTotalMoney;
        this.money = money;
        this.distributeRate = distributeRate;
        this.flowType = flowType;
        this.delFlag = 0;
        this.createUser = createUser;
        this.createTime = createTime;
    }

}